package beans;

import java.util.Vector;



public class Instance {

	private int id;
	private String description;
	private Vector courses;
	
	public Instance(){
		super();
		this.setCourses(new Vector());
	}
	
	public Instance(String description) {
		super();
		this.description = description;
		this.setCourses(new Vector());
	}
	
	public Instance(int id, String description) {
		super();
		this.id = id;
		this.description = description;
		this.setCourses(new Vector());
	}
	
//	public CharSequence getShortDescription(){
//		return this.description.replace("Cuatrimestre", "Cuatri").replace("Cursada Regular - ", "").replace("Presenciales", "Pres.");
//	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setCourses(Vector courses) {
		this.courses = courses;
	}

	public Vector getCourses() {
		return courses;
	}
	
	public void addCourse(Course course){
		this.courses.addElement(course);
	}
}
